package com.cskaoyan.mapper;

import com.cskaoyan.bean.MallGoods;
import com.cskaoyan.bean.MallGoodsExample;
import com.cskaoyan.model.bo.PageBo;
import com.cskaoyan.model.vo.goods.wxgoods.WxRelatedVo;
import com.cskaoyan.model.vo.stat.StatGoodsInnerVO;
import com.cskaoyan.model.vo.topic.WxTopicDetailData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MallGoodsMapper {
    long countByExample(MallGoodsExample example);

    int deleteByExample(MallGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MallGoods record);

    int insertSelective(MallGoods record);

    List<MallGoods> selectByExampleWithBLOBs(MallGoodsExample example);

    List<MallGoods> selectByExample(MallGoodsExample example);

    MallGoods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MallGoods record, @Param("example") MallGoodsExample example);

    int updateByExampleWithBLOBs(@Param("record") MallGoods record, @Param("example") MallGoodsExample example);

    int updateByExample(@Param("record") MallGoods record, @Param("example") MallGoodsExample example);

    int updateByPrimaryKeySelective(MallGoods record);

    int updateByPrimaryKeyWithBLOBs(MallGoods record);

    int updateByPrimaryKey(MallGoods record);

    int selectSameName(String name);

    List<WxTopicDetailData> selectTopicGoods(@Param("goodsList") Integer[] goods);

    MallGoods selectGoodsById(@Param("valueId") Integer valueId);

    List<WxRelatedVo> selectByCategoryId(@Param("categoryId") Integer categoryId);


//    List<Integer> selectCategortId(String keyword);
}
